package day05;

import java.util.Scanner;

public class Addition {
    public static void main(String[] args) {

        for(int num=1;num<=9;num++){//控制行
            for(int i=1;i<=num;i++){//控制列
                System.out.print(i+"*"+num+"="+i*num+"\t");
            }
            System.out.println();
        }

        /* int num =6;
       for(int i=1;i<=num;i++){
           System.out.println(i+"*"+num+"="+i*num+"\t");
       }
       System.out.println( );

       */

        /*
        Scanner input=new Scanner(System.in);
        int score=0;
        for(int i=1;i<=10;i++){
            int a=(int)(Math.random()*100);
            int b=(int)(Math.random()*100);
            int as=a+b;
               System.out.println("("+i+")"+a+"+"+b+"=");
               int result =input.nextInt();
               if(result==(a+b)){
                   System.out.println("回答正确");
                   score +=10;
               }else{
                   System.out.println("回答错误");

               }

           }
            System.out.println("你最后的成绩为"+score);
        }*/
    }
}

